home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q34207 < prev    next >
Text File  |  1988-08-16  |  1KB  |  51 lines

  1. Q34207 Internal Compiler Error Grammar.c 1.29 line 108
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    When the code below is compiled with /Oi, the following error is
  8. generated:
  9.  
  10.  fatal error C1001: Internal Compiler Error
  11.       (compiler file '@(#)grammar.c:1.29', line 108)
  12.       Contact Microsoft Technical Support
  13.  
  14.    To work around this problem, do one of the following:
  15.  
  16.    1. Disable the generation of intrinsic function calls for "inp" by
  17.       adding a #pragma at the top of your program. Add the following
  18.       to disable the /Oi switch for any calls made to the "inp"
  19.       function:
  20.  
  21.       #pragma function ( inp )
  22.  
  23.    2. Simplify the expression by using a temporary variable. Replace
  24.  
  25.       int zoo;
  26.       ( zoo ? inp( inp( 99 )) : -1 );
  27.  
  28. to the following lines:
  29.  
  30.      int zoo, temp;
  31.      temp = inp( inp( 99 ));
  32.      ( zoo ? temp : -1 );
  33.  
  34.    Microsoft has confirmed this to be a problem in Version 5.10 of the
  35. C compiler. We are researching this problem and will post new
  36. information as it becomes available.
  37.  
  38. More Information:
  39.    The following code generates the error:
  40.  
  41. #include <conio.h>
  42. void main(void);
  43. void main()
  44. {
  45. int zoo;
  46. ( zoo ? inp( inp( 99 )) : -1 );
  47. }
  48.  
  49. Keywords:  buglist5.10
  50. Updated  88/08/16 02:57
  51.